package com.qf.bigdata.controller;

import com.qf.bigdata.bean.RecommendResult;
import com.qf.bigdata.service.RecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody
@RequestMapping("/api/v1")
public class RecommendCtrl {

    @Autowired
    @Qualifier("recommendService")
    private RecommendService recommendService;

    @RequestMapping(path = "/recommend/{uid}")
    public RecommendResult recommend(@PathVariable  String uid){
       return recommendService.recommend(uid);
    }
}
